Release 10.1A: OpenEdge Development:
Progress 4GL Reference
SET-POINTER-VALUE statement
Sets a variable of type MEMPTR to the value of a particular memory location.
Note: Does not apply to SpeedScript programming.Syntax
memptr-valueA 32-bit integer that represents a memory location.
memptr-expressionAn expression that evaluates to a value of type MEMPTR.
ExampleThe following example calls a DLL routine that returns a pointer to a structure, extracts an address at byte 5 of the structure, uses SET-POINTER-VALUE to assign the address to a Progress MEMPTR, and displays the character string at the address:
Notes
- SET-POINTER-VALUE is particularly useful when accessing Windows Dynamic Link Library (DLLs) or UNIX shared library routines from the 4GL. For more information on DLLs, see the chapter on DLLs in OpenEdge Development: Programming Interfaces .
- For more information on the MEMPTR data type, see OpenEdge Development: Programming Interfaces .
See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |